package com.design.pattern.factory.abstracts;

import com.design.pattern.factory.simple.ThirdPartLogin;

public class AbstractFactoryTest {
    public static void main(String[] args) {
        //抽象工厂方法
        //AbstractFactory factory=new QqFactory();
        //AbstractFactory factory=new WeChatFactory();
        AbstractFactory factory=new MBlogFactory();
        ThirdPartLogin thirdPartLogin=factory.getThirdLogin();
        thirdPartLogin.getUserAuthorization();
        thirdPartLogin.getUserInfo();
        thirdPartLogin.saveUser();
    }
}
